<template>
    <div id="jiage">
      <searchResultComponent :goodsList="listcontent" title="热点档口/品牌:"></searchResultComponent>
    </div>
</template>
<script>
import searchResultComponent from "./searchResultComponent";
export default {
    data() {
        return {
            listcontent: []
        }
    },
    components: {
        searchResultComponent
    },
    created(){
        this.$http.get(`http://localhost:3000/api/searchview/searchkeyword?displayMode=${this.$store.state.displayMode}&keyword=${this.$store.state.searchkeyword}&pageIndex=1&pageSize=20`)
        .then(response => {
            this.listcontent=response.data.Data.NewItems;
        })
        .catch(err => {
            console.log(err);
        })
    }
}
</script>
<style lang="scss" scoped>
</style>
